package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.base.BaseEntity;

import java.util.Date;

/**
 * 商品表 goodsinfo
 * 
 * @author chengenjiang
 * @date 2019-07-16
 */
public class Goodsinfo extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 商品信息ID */
	@Excel(name = "商品信息ID")
	private Integer goodsinfoId;
	/** 所属分类 */
	private Integer mallcategoryId;
	/** 商品价格 */
	@Excel(name = "商品价格")
	private Double goodsPrice;
	/** 会员价格 */
	@Excel(name = "会员价格")
	private Double memberPrice;
	/** 积分价格 */
	@Excel(name = "积分价格")
	private Double integralPrice;
	/** 商品描述 */
	@Excel(name = "商品描述")
	private String goodsDescribe;
	/** 展示优先级 */
	@Excel(name = "展示优先级")
	private Integer sortPriority;
	/** 库存数量 */
	@Excel(name = "库存数量")
	private Integer kuCun;
	/** 状态 */
	@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
	private String status;
	/** 商家ID */
	private Integer businessinfoId;
	/** 创建时间 */
	@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Excel.Type.EXPORT)
	private Date createTime;
	/** 修改时间 */
	@Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Excel.Type.EXPORT)
	private Date updateTime;
	/** 扩展字段 */
	@Excel(name = "扩展字段")
	private String attribute;
	/** 商品主属性表ID */
	private Integer goodmainId;
	/** 商品副属性表ID */
	private Integer goodviceId;
	/**
	 * 产品图片
	 */
	private String url;
	/**
	 * 开启拼单
	 */
	private String pindan;

	public void setGoodsinfoId(Integer goodsinfoId) 
	{
		this.goodsinfoId = goodsinfoId;
	}

	public Integer getGoodsinfoId() 
	{
		return goodsinfoId;
	}
	public void setMallcategoryId(Integer mallcategoryId) 
	{
		this.mallcategoryId = mallcategoryId;
	}

	public Integer getMallcategoryId() 
	{
		return mallcategoryId;
	}
	public void setGoodsPrice(Double goodsPrice) 
	{
		this.goodsPrice = goodsPrice;
	}

	public Double getGoodsPrice() 
	{
		return goodsPrice;
	}
	public void setMemberPrice(Double memberPrice) 
	{
		this.memberPrice = memberPrice;
	}

	public Double getMemberPrice() 
	{
		return memberPrice;
	}
	public void setIntegralPrice(Double integralPrice) 
	{
		this.integralPrice = integralPrice;
	}

	public Double getIntegralPrice() 
	{
		return integralPrice;
	}
	public void setGoodsDescribe(String goodsDescribe) 
	{
		this.goodsDescribe = goodsDescribe;
	}

	public String getGoodsDescribe() 
	{
		return goodsDescribe;
	}
	public void setSortPriority(Integer sortPriority) 
	{
		this.sortPriority = sortPriority;
	}

	public Integer getSortPriority() 
	{
		return sortPriority;
	}
	public void setKuCun(Integer kuCun) 
	{
		this.kuCun = kuCun;
	}

	public Integer getKuCun() 
	{
		return kuCun;
	}
	public void setStatus(String status)
	{
		this.status = status;
	}

	public String getStatus()
	{
		return status;
	}
	public void setBusinessinfoId(Integer businessinfoId) 
	{
		this.businessinfoId = businessinfoId;
	}

	public Integer getBusinessinfoId() 
	{
		return businessinfoId;
	}

	public void setAttribute(String attribute) 
	{
		this.attribute = attribute;
	}

	public String getAttribute() 
	{
		return attribute;
	}
	public void setGoodmainId(Integer goodmainId) 
	{
		this.goodmainId = goodmainId;
	}

	public Integer getGoodmainId() 
	{
		return goodmainId;
	}
	public void setGoodviceId(Integer goodviceId) 
	{
		this.goodviceId = goodviceId;
	}

	public Integer getGoodviceId() 
	{
		return goodviceId;
	}
	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("goodsinfoId", getGoodsinfoId())
            .append("mallcategoryId", getMallcategoryId())
            .append("goodsPrice", getGoodsPrice())
            .append("memberPrice", getMemberPrice())
            .append("integralPrice", getIntegralPrice())
            .append("goodsDescribe", getGoodsDescribe())
            .append("sortPriority", getSortPriority())
            .append("kuCun", getKuCun())
            .append("status", getStatus())
            .append("businessinfoId", getBusinessinfoId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("attribute", getAttribute())
            .append("goodmainId", getGoodmainId())
            .append("goodviceId", getGoodviceId())
            .toString();
    }


	public Date getCreateTime() {
		return createTime;
	}


	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getPindan() {
		return pindan;
	}

	public void setPindan(String pindan) {
		this.pindan = pindan;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
}
